import { lazy } from "react";

// 三级
export const routerChildren = [
  {
    id: '13-1',
    title: '智能抠图',
    path: '/home/mapping/Intelligent',
    icon: 'CodepenCircleOutlined',
    element: lazy(() => import('../pages/Mapping/Intellijent/Intelligent'))
  },
  {
    id: '13-2',
    title: '拼图',
    path: '/home/mapping/saw',
    icon: 'SlackOutlined',
    element: lazy(() => import('../pages/Mapping/Saw/saw'))
  },
  {
    id: '13-3',
    title: '二维码美化',
    path: '/home/mapping/qr',
    icon: 'OpenAIOutlined',
    element: lazy(() => import('../pages/Mapping/Qr/qr'))
  }
]

// 二级
export const routerBox = [
  {
    id: '2',
    title: '精选推荐',
    path: '/home/select',
    icon: 'RedditOutlined',
    element: lazy(() => import('../pages/Select/select'))
  },
  {
    id: '3',
    title: '模版中心',
    path: '/home/stencil',
    icon: 'AppleOutlined',
    element: lazy(() => import('../pages/Stencil/stencil'))
  },
  {
    id: '4',
    title: '数字人视频',
    path: '/home/digital',
    icon: 'WindowsOutlined',
    element: lazy(() => import('../pages/Digital/digital'))
  },
  {
    id: '5',
    title: 'AI创作',
    path: '/home/ai',
    icon: 'IeOutlined',
    element: lazy(() => import('../pages/AI/ai'))
  },
  {
    id: '6',
    title: 'H5',
    path: '/home/h5s',
    icon: 'ChromeOutlined',
    element: lazy(() => import('../pages/H5/h5s'))
  },
  {
    id: '7',
    title: '海报',
    path: '/home/placard',
    icon: 'GithubOutlined',
    element: lazy(() => import('../pages/Placard/placard'))
  },
  {
    id: '8',
    title: '长页',
    path: '/home/long',
    icon: 'AliwangwangOutlined',
    element: lazy(() => import('../pages/Long/long'))
  },
  {
    id: '9',
    title: '表单',
    path: '/home/form',
    icon: 'DingdingOutlined',
    element: lazy(() => import('../pages/Form/form'))
  },
  {
    id: '10',
    title: '互动',
    path: '/home/interaction',
    icon: 'WeiboSquareOutlined',
    element: lazy(() => import('../pages/Interaction/interaction'))
  },
  {
    id: '11',
    title: '电子画册',
    path: '/home/electronic',
    icon: 'TwitterOutlined',
    element: lazy(() => import('../pages/Electronic/electronic'))
  },
  {
    id: '12',
    title: '视频',
    path: '/home/video',
    icon: 'YoutubeOutlined',
    element: lazy(() => import('../pages/videos/video'))
  },
  {
    id: '13',
    title: '作图工具',
    path: '/home/mapping',
    icon: 'FacebookOutlined',
    element: lazy(() => import('../pages/Mapping/mapping')),
    children: routerChildren
  }
]
// 
export const router = {
  mode: 'history',
  routerList: [
    {
      path: '/',
      to: '/home'
    },
    {
      id: '14',
      title: '登录',
      path: '/login',
      icon: 'LinuxOutlined',
      element: lazy(() => import('../pages/Login/login'))
    },
    {
      id: '1',
      title: '首页',
      path: '/home',
      icon: 'AndroidOutlined',
      element: lazy(() => import('../pages/Home/index')),
      children: routerBox
    },
  ]
}
